package com.jrmf.redenvelopes.order.util;

public class StringUtil {
    /**
     * 判断是否为空
     * @param str
     * @return
     */
    public static boolean isBlank(String str) {
        boolean result = false;
        if (str == null || "".equals(str.trim())) {
            return true;
        }
        return result;
    }
    
    /**
     * 判断是否为空
     * @param Object
     * @return
     */
    public static Boolean isBlank(Object obj){
		Boolean result =true;
		if(null!=obj && !"".equals((obj.toString()).trim()) && !"null".equals(obj.toString())){
			result=false;
		}
		return result;
	}
}
